package com.yanqu.road.entity.servercenter;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_s_config_version_check_result")
public class ConfigVersionCheckResultData extends DataObject {
    @FieldTypeAnnotation(desc = "区服id", select = true, update = true)
    private long serverId;
    @FieldTypeAnnotation(desc = "区服类型", select = true, update = true)
    private int serverType;
    @FieldTypeAnnotation(desc = "渠道", isIndex = true)
    private int channelId;
    @FieldTypeAnnotation(desc = "更新后的版本")
    private String configVersion;

    public ConfigVersionCheckResultData(int channelId, long serverId, int serverType) {
        this.channelId = channelId;
        this.serverId = serverId;
        this.serverType = serverType;
        setInsertOption();
    }

    public ConfigVersionCheckResultData() {
    }


    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        this.serverId = serverId;
    }

    public int getChannelId() {
        return channelId;
    }

    public void setChannelId(int channelId) {
        this.channelId = channelId;
    }

    public String getConfigVersion() {
        return configVersion;
    }

    public void setConfigVersion(String configVersion) {
        this.configVersion = configVersion;
        setUpdateOption();
    }

    public int getServerType() {
        return serverType;
    }

    public void setServerType(int serverType) {
        this.serverType = serverType;
    }
}
